package com.coffee.app.controller.front;

import com.coffee.app.common.vo.AppUserVO;
import com.coffee.app.service.IAppUserService;
import com.coffee.framework.log.annotation.AutoLog;
import com.coffee.framework.common.enums.UserPlatformEnum;
import com.coffee.framework.common.result.R;
import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


/**
 * <p>
 * 用户表 前端控制器
 * </p>
 *
 * @author Kevin
 * @since 2022-05-03
 */
@RestController
@RequestMapping("/front/appUser")
@AllArgsConstructor
public class FrontAppUserController {

    private IAppUserService appUserService;

    /**
     * 获取用户信息
     */
    @GetMapping("/getUserInfo")
    @AutoLog(module = "用户表", title = "获取用户信息", userPlatform = UserPlatformEnum.APP)
    public R<AppUserVO> getUserInfo() {
        return R.success(appUserService.getUserInfo());
    }
}

